﻿using System;
using System.Collections.Generic;
using System.Diagnostics.Contracts;
using System.Linq.Expressions;

namespace Isuka.Spiritual.Appendix
{
    [ContractVerification(false)]
    public sealed partial class ExpressionBuilder
    {
        readonly Stack<Expression> exprStack = new Stack<Expression>();

        public Expression Current
        {
            get
            {
                return exprStack.Peek();
            }
        }

        public Expression Pop()
        {
            return exprStack.Pop();
        }

        public void Push(Expression expr)
        {
            exprStack.Push(expr);
        }

    }
}
